#include "Light.h"

using namespace OBR;

/* ------------------------ initialize static members ----------------------- */
Light::Light(std::string _cuda_source_path, LightType _type)
    : VirtualProgramEntry(_cuda_source_path), type(_type)
{
}

Light::~Light()
{
}

LightInfo Light::getInfo()
{
    LightInfo info;
    info.light_id = this->program_id;
    info.light_instance_id = this->program_instance_id;
    info.type = this->type;
    return info;
}

DeltaLight::DeltaLight(std::string _cuda_source_path) : Light(_cuda_source_path, LightType::DELTA)
{
}

DeltaLight::~DeltaLight()
{
}

AreaLight::AreaLight(std::string _cuda_source_path) : Light(_cuda_source_path, LightType::AREA)
{
}

AreaLight::~AreaLight()
{
}